<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      text-decoration: none;
    }

    .box {
      width: 820px;
      height: 430px;
      background-color: pink;
      /* background-color: #fff; */
      margin: 0 auto;
      margin-top: 100px;
    }

    .fl {
      float: left;
    }

    .fr {
      float: right;
    }

    header {
      display: flex;
      align-items: center;
      justify-content: space-evenly;
    }

    .left-login {
      text-align: center;
      width: 300px;

      img {
        margin: 0 auto;
        width: 200px;
        height: 200px;
        padding: 15px;

      }
    }

    #right-login {
      text-align: center;
    }

    .saomiao {
      text-align: center;
      margin: 20px 0;
    }

    .first {
      width: 400px;
      height: 100px;
      margin: 20px 0;
      border: 1px solid #ccc;
      border-radius: 8px;
      display: flex;
      flex-wrap: wrap;
      align-content: space-around;

    }
    .two {
      width: 400px;
      height: 100px;
      margin: 20px 0;
      border: 1px solid #ccc;
      border-radius: 8px;
      display: flex;
      flex-wrap: wrap;
      align-content: space-around;

    }

    .btn {
      display: flex;
      justify-content: space-between;
    }

    .zhuce {
      width: 190px;
      height: 40px;
      line-height: 40px;
      border-radius: 8px;
      border: 1px solid #ccc;
    }

    .denglu {
      width: 190px;
      height: 40px;
      line-height: 40px;
      border-radius: 8px;
      border: 1px solid #00aeec;
      background-color: #00aeec;
    }

    .tu {
      width: 400px;
      height: 50px;
      line-height: 50px;
      display: flex;
      justify-content: space-around;
    }

    #left-login img {
      margin: 0 auto;
      width: 200px;
      height: 200px;
      padding: 15px;
    }

    .b {
      color: #00aeec;
    }
    .zz img {
      width: 100%;
      height: 100%;

    }
    .rz img {
      width: 100%;
      height: 100%;

    }
  </style>
</head>

<body>
  <div id="app">
    <div class="box" style="position: relative;">
      <header>

        <div class="left-login">
          <p class="saomiao">扫描二维码登录</p>
          <div @mouseover="show=3" @mouseout="show=1">
            <img class="a1" style="width: 200px;height: 200px;" v-show="show===1" src="./img/二维码.png">
            <img class="a2" style="width: 200px;height: 200px;" v-show="show===2" src="./img/二维码2.png">
            <img class="a3" style="width: 200px;height: 200px;" v-show="show===3" src="./img/二维码1.png">
          </div>
          <p>请使用 <a @mouseover="show=2" @mouseout="show=1" href="https://app.bilibili.com/?spm_id_from=333.1007.0.0"
              style="color: #00aeec;">哔哩哔哩客户端</a>
            <br>扫码登录或扫码下载APP
          </p>
        </div>



        <div class="right-login">
          <div class="head">
            <span style="padding: 60px;" @click="activeIndex=0" :class="{'b':activeIndex===0}">密码登录</span>
            <span style="padding: 60px;" @click="activeIndex=1" :class="{'b':activeIndex===1}">短信登陆</span>
          </div>
          <div class="first" v-if="activeIndex===0">
            <div class="zhanghao"><span style="margin-left: 5px">账号</span><input  @focus="abc=1" @blur="abc=2"
                style="width: 320px; border: none; background-color: rgba(255, 255, 255, 0); outline: none;margin-left: 5px;"
                type="text" placeholder="请输入账号"></div>

            <hr style="width: 400px;color: #ccc;">

            <div class="mima"><span style="margin-left: 5px">密码</span><input  @focus="abc=2" @blur="abc=1"
                style="width: 185px; border: none; background-color: rgba(255, 255, 255, 0);outline: none;margin-left: 5px"
                :type="displayThePassword?'text':'password'" placeholder="请输入密码">
            </div>
            
          </div>
          <div class="btn" v-if="activeIndex===0">
            <a>
              <div class="zhuce" style="text-align: center;"><span>注册</span></div>
            </a>
            <a>
              <div class="denglu" style="text-align: center;"><span>登录</span></div>
            </a>
          </div>
          <div class="two" v-if="activeIndex===1">
            <div class="zhanghao"><span style="margin-left: 5px">+86</span><input @focus="abc=1" @blur="abc=2"
                style="width: 320px; border: none; background-color: rgba(255, 255, 255, 0); outline: none;margin-left: 5px;"
                type="text" placeholder="请输入账号"></div>

            <hr style="width: 400px;color: #ccc;">

            <div class="mima"><span style="margin-left: 5px">验证码</span><input @focus="abc=2" @blur="abc=1"
                style="width: 185px; border: none; background-color: rgba(255, 255, 255, 0);outline: none;margin-left: 5px"
                :type="displayThePassword?'text':'password'" placeholder="请输入验证码">
            </div>
          </div>
          <div class="btn" v-if="activeIndex===1">
            
            <a>
              <div class="denglu" style="text-align: center;margin: 0 auto;width: 400px;"><span>登录/注册</span></div>
            </a>
          </div>

          
          <p style="margin-top: 30px;">其他登陆方式</p>

          <div class="tu">
            <p fl><img src="./img/wx.png" style="width: 25px;display: flex;
    align-items: center;float: left;margin-top: 15px;margin-right: 5px;">微信登陆</p>
            <p><img src="./img/wb.png" style="width: 25px;display: flex;
    align-items: center;float: left;margin-top: 15px;margin-right: 5px;">微博登录</p>
            <p><img src="./img/qq.png" style="width: 25px;display: flex;
    align-items: center;float: left;margin-top: 15px;margin-right: 5px;">QQ登陆</p>


          </div>
        </div>
      </header>
      <div class="zz" style="width: 100px;height: 100px;position: absolute;bottom: 0;left: 0;">
        <img src="./img/zb.png" alt="" v-show="abc===1">
        <img src="./img/zz.png" alt="" v-show="abc===2">

      </div>
      <div class="rz" style="width: 100px;height: 100px;position: absolute;bottom: 0;right: 0;">
        <img src="./img/yz.png" alt="" v-show="abc===1">
        <img src="./img/yb.png" alt="" v-show="abc===2">
      </div>
    </div>
  </div>
</body>
<script src="./vue.js"></script>
<script>
  const { createApp, ref } = Vue;
  createApp({
    setup() {
      const abc = ref(1)
      const parent = ref(1)
      let show = ref(1);
      let activeIndex = ref(0)
      let color = ref('b')
      let displayThePassword = ref(false)
      return {
        show,color,activeIndex,abc,parent,displayThePassword
        
      };
    }
  }).mount('#app')
</script>

</html>